<?php
/**
 * @package		HelloWorld
 * @license		GNU/GPL, see LICENSE.php
 */

jimport( 'joomla.application.component.view');

/**
 * HTML View class for the HelloWorld Component
 *
 * @package		HelloWorld
 */
class HelloViewGoodbye extends JView
{
	function display($tpl = null)
	{
		if(JRequest::getVar('task') === "getContact"){
			$model = $this->getModel();
			$contacts = $model->getContacts();
			$this->assignRef('contacts', ($contacts));
		}else{
			$time = JRequest::getVar('time');
			$model = $this->getModel();
			$greeting = $model->getGreeting($time);
			$this->assignRef('greeting', ($greeting));
		}
		parent::display($tpl);
	}
}
?>
